﻿<!DOCTYPE html>
<html>
     <head>
          <meta charset="UTF-8">
          <title></title>
     </head>
		<script>
			function gotoBaidu(){
				location.href =  "http://www.baidu.com";
			}
			function refresh(){
				window.location.reload();
			}
			function del(){
				if(window.confirm("你确定要删除吗？")){
					if(window.confirm("你一定要删除吗？")){
						if(window.confirm("你肯定要删除吗？")){
							//删除的动作
						}
					}
				}
			}
			
			function show(){
				var username = window.prompt("请输入你的名字！");
				console.log(username);
			}
		</script>
     <body>
		<button onclick="gotoBaidu()">跳转到百度</button>
		<button onclick="refresh()">刷新当前页面</button>
		<button onclick="window.history.go()">前进</button>
		<button onclick="window.blur()">失去焦点</button>
		<button onclick="del()">删除</button>
		<button onclick="show()">Prompt</button>
		<marquee direction="left">滚来滚去<marquee>
     </body>

</html>
